package com.example.mq.common;

import com.example.mq.mqserver.core.ExchangeType;
import lombok.Data;

import java.io.Serializable;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ws
 * Date: 2023-10-05
 * Time: 20:44
 */
@Data
public class ExchangeDeclareArguments extends BasicArguments implements Serializable {
    // 对应 VirtualHost 中的
    // exchangeDeclare(String exchangeName, ExchangeType exchangeType, boolean durable,
    //                                   boolean autoDelete, Map<String, Object> arguments) 这个方法的参数
    private String exchangeName;
    private ExchangeType exchangeType;
    private boolean durable;
    private boolean autoDelete;
    private Map<String, Object> arguments;
}
